<?php
// Make sure _PATH_ is defined, otherwise when we pull in the config
// file it will have no idea where to find our directories
if (!defined("_PATH_")) {define("_PATH_",dirname(__FILE__));}

// Constants Files
require_once(_PATH_.DIRECTORY_SEPARATOR."config".DIRECTORY_SEPARATOR."const.php");
// Autoload
require_once _CORE_PATH_."includes".DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."Fox.php";
Fox::instance()->initialize();
Fox\BundleManager::instance()->register(_CORE_PATH_."bundles".DIRECTORY_SEPARATOR."Documents");
Fox\BundleManager::instance()->register(_PATH_.DIRECTORY_SEPARATOR."bundles".DIRECTORY_SEPARATOR."Nawa");

// Used ressources
use Fox\Ressources\Collection, Fox\Ressources\Script, Fox\Ressources\Style;
Fox\Ressources::instance()->register(
	new Style(_CORE_ASSETS_."css/smoothness/jquery-ui-1.10.0.custom.min.css"),
	new Style(_CORE_ASSETS_."css/bootstrap.min.css"),
	new Style(_CORE_ASSETS_.'css/standard.css'),
	new Style(_CORE_ASSETS_.'css/grid.css'),
	new Style(_CORE_ASSETS_.'css/buttons.css'),
	new Style(_ASSETS_.'css/style.css'),
	// Javascript Custom
	new Collection('jquery',array(
		'jquery.js',
		'jquery-metadata.js',
		'jquery.hashtable-2.1.js',
		'jquery-ui-1.10.0.custom.min.js',
		'jquery.numberformatter-1.2.3.min.js',
		'jquery.tipTip.minified.js',
		'jquery.cookie.js',
		'i18next-1.6.0.min.js'
		),_CORE_ASSETS_."js/jquery/min/",array(Collection::PARAM_CACHE => false)),
	new Script(_CORE_ASSETS_."js/bootstrap.min.js"),
	// Fox Collection
	new Collection('fox',array(
		'bootstrap.min.js',
		'jquery-fox.js',
		'fox/ui/tokeninput.js',
		'fox/ui/grid.js',
		'fox.js'
		),_CORE_ASSETS_.'js/',array(Collection::PARAM_CACHE => false)),
	new Script(_CORE_JAVAS_.'fox-html.js'),
	new Script(_CORE_JAVAS_.'fox-site.js'),
	new Script(_ASSETS_.'js/init.js')
);